package example.mybaits_demo2.mapper;

import example.mybaits_demo2.model.UserInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @ClassName UserInfoMapper
 * @Description 学习 mybatis
 * @Author ZJX
 * @Date 2024/8/14 22:16
 * @Version 1.0
 */

@Mapper
public interface UserInfoMapper {
    @Results( id = "1109",value = {
        @Result(column = "create_time",property = "createTime")
    })
    @Select("select * from userinfo")
    List<UserInfo> select();
}
